<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: zhangyong
  Date: 2018/3/21
  Time: 13:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.zy.com/jtlib/" prefix="jt" %>
<%--下面这行需要两个jar包 standard,jstl,但是版本不对还是报错--%>
<%--<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>--%>

<html>
<head>
    <title>JSP学习</title>
</head>
<body>
当前时间:
<%
    Date date = new Date();
    out.write(date.toLocaleString() + "\n");
%>
<br/>
<%
    String method = request.getMethod();
    response.setCharacterEncoding("utf-8");
    response.getWriter().write("火影忍者<br/>");
    session.getAttribute("data");
    config.getInitParameter("db");
    page.hashCode();
%>
<br/>
<%="等号的输出者2"%>
<div style="width: 200px;height: 200px;color: #5af;background-color: #ff0000">
    <h1>呵呵</h1>
</div>


<jt:jtTag name="Java编程思想" price="75.58" store="三味书屋"/> <br/>
<jt:jtTag name="看见" price="25.10" store="书海书屋"/> <br/>
<jt:jtTag name="狼图腾" price="23.00" store="国家图书馆"/> <br/>




<%--el表达式,可以禁用--%>
<%
    pageContext.setAttribute("data", "哈哈哈");
    session.setAttribute("username", "张芳");
%>

${pageScope.data} <br/>
<script>
    alert("${username}");
</script>


</body>
</html>
